package com.cug.campus_sh_market_server.entity.vo.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cug.campus_sh_market_server.entity.myenum.UserTypeEnum;
import com.cug.campus_sh_market_server.entity.po.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author sxt
 * @since 2022-03-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "UserVO对象", description = "用户查询结果")
@TableName("user_vo")
public class UserVO extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "学院id")
    private Integer collegeId;

    @ApiModelProperty(value = "学院名")
    private String college;

    @ApiModelProperty(value = "用户昵称")
    private String username;

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "用户账号")
    private String account;

    @ApiModelProperty(value = "身份标识(学生0/老师1)")
    private Integer identity;

    @ApiModelProperty(value = "用户类型(-1: 游客, 0: 普通用户, 1: 管理员, 2: 超级管理员)")
    private Integer userType;

    @ApiModelProperty(value = "电话")
    private String tel;

    @TableField("QQ")
    @ApiModelProperty(value = "QQ")
    private String QQ;

    @ApiModelProperty(value = "wechat")
    private String wechat;

    @ApiModelProperty(value = "用户状态(0: 启用, 1: 禁用)")
    private Integer active;

}
